import request from '@/utils/request'

// 查询增值保障列表
export function listGoodsSafeguardType(query) {
  return request({
    url: '/webshop/GoodsSafeguardType/list',
    method: 'get',
    params: query
  })
}

// 查询增值保障详细
export function getGoodsSafeguardType(safeguardTypeId) {
  return request({
    url: '/webshop/GoodsSafeguardType/' + safeguardTypeId,
    method: 'get'
  })
}

// 新增增值保障
export function addGoodsSafeguardType(data) {
  return request({
    url: '/webshop/GoodsSafeguardType',
    method: 'post',
    data: data
  })
}

// 修改增值保障
export function updateGoodsSafeguardType(data) {
  return request({
    url: '/webshop/GoodsSafeguardType',
    method: 'put',
    data: data
  })
}

// 删除增值保障
export function delGoodsSafeguardType(safeguardTypeId) {
  return request({
    url: '/webshop/GoodsSafeguardType/' + safeguardTypeId,
    method: 'delete'
  })
}
export function listGoodsSafeguardTypeAll() {
  return request({
    url: '/webshop/GoodsSafeguardType/listAll',
    method: 'get'
  })
}
